//
//  RequestConfig.h
//  OCBase
//
//  Created by 侯伟 on 2019/4/26.
//  Copyright © 2019 侯伟. All rights reserved.
//

#ifndef RequestConfig_h
#define RequestConfig_h

#import <Foundation/Foundation.h>

/**
 token失效通知
 */
#define kTokenExpiredNotification  @"kTokenExpiredNotification"

/**
 存储体统时间
 */
#define keySystemTimeStamp  @"keySystemTimeStamp"

/**
 *  监听进度响应block
 */
typedef void (^ProgressBlock)(NSProgress * _Nullable progress);

/**
 *   请求响应block
 */
@class HResponse;
typedef void (^ResponseBlock)(HResponse * _Nullable response);

/**
 *   请求响应block
 */

typedef void (^RequestResult)(id _Nullable responseObj,BOOL success);


/**
 *  请求方式
 */
typedef NS_ENUM(NSUInteger, RequestMethod) {
    MethodGET = 0,
    MethodPOST,
    MethodPUT,
    MethodDELETE,
    MethodPATCH
};


/**
 *  请求数据类型
 */
typedef NS_ENUM(NSUInteger, RequestDataType) {
    
    RequestDataTypeJSON = 0,
    
    RequestDataTypeHttp,
    
};

/**
 *  返回数据类型
 */
typedef NS_ENUM(NSUInteger, ResponseDataType) {
    
    ResponseDataTypeJSON = 0,
    
    ResponseDataTypeHttp,
};

#endif /* RequestConfig_h */
